package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 会计凭证汇总
 * </p>
 *
 * @author 小啊刚
 * @since 2021-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fag_voucher_summary")
@ApiModel(value="VAccountingVoucherSummary对象", description="会计凭证汇总")
public class VAccountingVoucherSummary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主单据id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "会计科目id")
    @TableField("accounting_id")
    private Integer accountingId;

    @ApiModelProperty(value = "会计科目名称")
    @TableField("accounting_name")
    private String accountingName;

    @ApiModelProperty(value = "币种ID")
    @TableField("currency_id")
    private Integer currencyId;

    @ApiModelProperty(value = "币种名称")
    @TableField("currency_name")
    private String currencyName;

    @ApiModelProperty(value = "汇率")
    @TableField("exchange_rate")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;


}
